﻿using System;
using UnityEngine;

// Token: 0x0200042B RID: 1067
[RequireComponent(typeof(Camera))]
public class EnableCameraDepthInForward : MonoBehaviour
{
	// Token: 0x06001A57 RID: 6743 RVA: 0x000A832C File Offset: 0x000A652C
	private void Start()
	{
		this.Set();
	}

	// Token: 0x06001A58 RID: 6744 RVA: 0x000A8334 File Offset: 0x000A6534
	private void Set()
	{
		if (base.GetComponent<Camera>().depthTextureMode == DepthTextureMode.None)
		{
			base.GetComponent<Camera>().depthTextureMode = DepthTextureMode.Depth;
		}
	}
}
